package factoryMode.prefectDemo.method.factory;

import factoryMode.prefectDemo.method.fruit.IFruit;

/**
 * @author： pang-yun
 * @date： 2021-10-22 00:45
 * 功能目的 ：用于
 */

public class MethodTest {
    public static void main(String[] args) {
        IFruit apple = new AppleFactory().createFruit();
        apple.what();

        IFruit pear = new PearFactory().createFruit();
        pear.what();

    }
}
